package com.qq.anonatation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * @author Bob
 */
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
public @interface Transaction {
    Class<? extends Throwable>[] rollbackFor() default { RuntimeException.class, Error.class };
    Class<? extends Throwable>[] noRollbackFor() default {};
    boolean readOnly() default false;

}
